home *** CD-ROM | disk | FTP | other *** search
/ USGS: National Coal Resou…s & Great Plains Regions / USGS National Coal Resource Assessment 1999 - Northern Rocky Mountains & Great Plains Regions - Disc 2.iso / PROGRAM / IMAGE / Devices / RasterFormats / RasterFormats.pdf
Encoding:
Text File  |  1996-08-13  |  3.6 KB  |  137 lines

  1.  
  2. /*
  3. **  $Header: /vol/atlanta/elib/RCS/RasterFormats.pdf,v 1.9 96/08/12 13:34:32 hellmann Exp $
  4. ** 
  5. **  FILENAME: RasterFormats.pdf
  6. ** 
  7. **   PURPOSE: Define the structure for the configuration information used by
  8. **        raster format DLLs.
  9. ** 
  10. **    AUTHOR: Doug Hellmann
  11. ** 
  12. **      DATE: Thu Jul 18 15:20:55 EDT 1996
  13. ** 
  14. **  COMMENTS: The title associated with the extensions is used as the device 
  15. **          name for the database record, since this is the only value 
  16. **          guaranteed to be unique.
  17. ** 
  18. **    RCSLOG:   $Log:    RasterFormats.pdf,v $
  19. ** Revision 1.9  96/08/12  13:34:32  hellmann
  20. ** Added some comments describing the constraints on the fields for 
  21. ** RasterFormats.
  22. ** 
  23. ** Revision 1.8  96/07/26  14:42:40  hellmann
  24. ** Switched userfile from boolean to enum type.
  25. ** 
  26. ** Revision 1.7  96/07/26  11:54:56  hellmann
  27. ** userfile takes values "user" or "internal".
  28. ** 
  29. ** Revision 1.5  96/07/26  11:17:55  hellmann
  30. ** Changed ispseudo to a boolean flag.
  31. ** 
  32. ** Revision 1.4  96/07/26  11:11:41  hellmann
  33. ** Added userfile parameter.
  34. ** 
  35. ** Revision 1.3  96/07/25  18:22:45  hellmann
  36. ** Added isdir and reordered file some.
  37. ** 
  38. ** Revision 1.2  96/07/22  14:26:33  hellmann
  39. ** Added readonly option.
  40. ** 
  41. ** Revision 1.1  96/07/22  14:25:02  hellmann
  42. ** Initial revision
  43. ** 
  44. ** 
  45. */
  46.  
  47. /*
  48. ** The three fields shortname, template and extension all specify different
  49. ** forms of the file extension.  Any instance of one of these fields should
  50. ** be UNIQUE.  In most cases, for any given RasterFormats instance, these
  51. ** fields will be of the form:
  52. **
  53. **    template:     *.<ext>
  54. **    extension:     .<ext>
  55. **    shortname:    <ext>
  56. **
  57. ** (where <ext> is a unique value for the record).
  58. **
  59. ** In the event where the template represents a pseudo extension (ie, ispseudo
  60. ** is true) the shortname must still contain a valid file extension.
  61. **
  62. ** EXAMPLES:
  63. **
  64. **   Imagine Image:
  65. **    template:    *.img
  66. **    ispseudo:    false
  67. **    extension:    .img
  68. **    shortname    img
  69. **
  70. **   GRID:
  71. **    template:    *.grid
  72. **    ispseudo:    true
  73. **    extension:    (empty)
  74. **    shortname:    grid
  75. **
  76. **   Generic Binary:
  77. **    template:    *
  78. **    ispseudo:    true
  79. **    extension:    (empty)
  80. **    shortname:    genericbinary
  81. */
  82.  
  83. /*
  84. ** This class should not be changed by the user in the configuration
  85. ** editor.
  86. */
  87. readonly;
  88.  
  89. /*
  90. ** Specify a unique name for matching with icons in a registry.  This
  91. ** field must never contain characters which can not be used as part of
  92. ** a file name.  This field should also be lower case.
  93. */
  94. shortname("File Type"): "" "Unique registry name.";
  95.  
  96. /*
  97. ** Define the filter pattern to be used by a file filter.
  98. */
  99. template("File Name Template"): "" "File filter pattern.";
  100.  
  101. /*
  102. ** 
  103. */
  104. ispseudo("Pseudo-Template"): "false" "Can the template be used to identify files by name?"
  105.     boolean "true" "false";
  106.  
  107. /*
  108. ** Define the extension for files of this type, to be used for autocompletion
  109. ** in a file filter operation.
  110. */
  111. extension("File Extension"): "" "What extension is used for this title?";
  112.  
  113. /*
  114. ** Does the file format represent a directory or a file?
  115. */
  116. isdir("File/Directory status"): "file" "Is the format a directory type or file type?"
  117.     enums {
  118.         "file"    "Format stored as a file"
  119.         "dir"    "Format stored as a directory"
  120.     };
  121.  
  122. /*
  123. ** Define the instance (full path) for which supports a particular title.
  124. */
  125. instance("DLL Instance"): "" "Which DLL instance should be used?";
  126.  
  127. /*
  128. ** Does the title identify an interface to a user file, or a partial file
  129. ** such as AUX files?
  130. */
  131. userfile("User accessible file?"):"user"
  132.     "Does the title identify an interface to a user file, or an internal file?"
  133.     enums {
  134.         "user"     "File contains user data."
  135.         "internal" "File is in internal format."
  136.     };
  137.